<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class Common extends Controller
{
    use \App\Traits\CacheTrait;
    public function header()
    {
        return view('web.common.iframe.header');
    }

    public function footer()
    {
        return view('web.common.iframe.footer');
    }

    public function selectChange(Request $request)
    {
        $id = $request->input('id');
        $areaList = $this->cacheGetProvinceList($id);
        echo json_encode($areaList);
    }

    public function domainChange(Request $request)
    {
        $id = $request->input('id');
        $domainList = $this->cacheGetDomainChildrenList($id);
        echo json_encode($domainList);
    }
}
